/**
 * @Title: Result.java
 * @Package tbg 
 * @Description: TODO
 * @author tbc
 * @date 2016年7月3日 上午5:09:30
 * @version
 */
package tbg.http;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import lombok.Data;

/**
 * 
 * @author tbc
 * @version 1.0 create:{2016年7月3日 上午5:09:30}
 * 
 */
@Data
public class Result {

	private String message;
	private List<Map<String, Object>> list;
	private int totalSize;
	private boolean success;

	public static void main(String[] args) throws FileNotFoundException, IOException {
		HSSFWorkbook wb = new HSSFWorkbook(); // 创建一个Excel
		HSSFSheet sheet = wb.createSheet("sheet1");// 创建一个Sheet

		HSSFRow row = sheet.createRow(0);// 创建一个行

		HSSFCell cell = row.createCell((short) 0); // 创建一个单元格
		// cell.set.setEncoding(HSSFCell.ENCODING_UTF_16);
		cell.setCellValue("序号"); // 设置值

		cell = row.createCell((short) 1);
		// cell.setEncoding(HSSFCell.ENCODING_UTF_16);
		cell.setCellValue("姓");

		wb.write(new FileOutputStream(new File("h:\\Users\\tbc\\Desktop\\amdms.xls")));
	}

}
